package com.atguigu.gmall.order;

import com.atguigu.gmall.common.config.mq.annotation.EnableMqservice;
import com.atguigu.gmall.common.interceptor.annotation.EnableUserAuthFeignInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author lhh
 * @ClassName OrderApplication
 * @date 2022 2022/12/16
 */
@EnableMqservice
@EnableTransactionManagement
@EnableUserAuthFeignInterceptor
@EnableFeignClients(basePackages = { "com.atguigu.gamll.feign.cart",
                                    "com.atguigu.gamll.feign.product",
                                    "com.atguigu.gamll.feign.user","com.atguigu.gamll.feign.ware"})
@MapperScan(basePackages = "com.atguigu.gmall.order.mapper")
@SpringCloudApplication
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }
}
